//
//  RecordChangeCollectionViewCell.m
//  HLRecord
//
//  Created by XTW on 2023/1/12.
//

#import "RecordChangeCollectionViewCell.h"

@interface RecordChangeCollectionViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@end

@implementation RecordChangeCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self = [[[NSBundle mainBundle] loadNibNamed:@"RecordChangeCollectionViewCell" owner:self options:nil] lastObject];
    }
    return self;
}

- (void)showContent:(NSInteger)row selectRow:(NSInteger)selectRow name:(NSString *)nameStr {
    if (row == selectRow) {
        self.icon.layer.borderWidth = 1.0f;
        self.icon.layer.borderColor = ThemeColor.CGColor;
    } else {
        self.icon.layer.borderWidth = 0;
    }
    self.nameLabel.text = nameStr;
}

@end
